var $;
var from;
var ids=0;
layui.use(['form','colorpicker','layer'],function(){
  $=layui.$;
  from=layui.form;
  var layer=layui.layer;
  $("#begin").blur(function(){
      var beg=$("#beg").val();
      var begin=$("#begin").val();
      if(begin<beg){
          layer.tips('超出历史回放的范围',"#begin")
      }
  })
  $("#end").blur(function(){
      var ends=$("#ends").val();
      var end=$("#end").val();
      if(end<ends){
          layer.tips('超出历史回放的范围',"#end")
      }
  })
})

function child(res){
  $("#ends").val(res);
}

var retdata=function(){
  var begin=$("#begin").val();
  var end=$("#end").val();
  var date;
  if(begin=="" || end==""){
    return true;
  }else{
    date={begin,end};
  }
  return date;
}